<?php
	class test extends CI_Controller{
		function index(){
			/*$this->session->set_userdata('MEM_ID', 1);
			print $this->session->userdata('MEM_ID');*/
			
			//$this->session->sess_destroy();
			/*$this->load->model('local/data/article/mod_article');
			print $this->mod_article->set_published('201303181142252', false);*/
			//$this->load->model('local/data/cafe/mod_cafe_expire');
			
			/*$this->template->write('content_1', $this->load->view('frm_test', null, true));
			$this->template->render();*/
			$this->load->model('local/data/article/mod_article');
			print_r($this->mod_article->get_article_by_tag('tag2'));
		}
		function ajax_wizard(){
			$product_name = $this->input->post('cpn');
			$product_price = $this->input->post('cpp');
			$product_discount = $this->input->post('cpdc');
			print_r(json_encode(array('product_name' => $product_name,
										'product_price' => $product_price,
										'product_discount' => $product_discount)));
		}
	}
?>